//
//  JWGRStudHead.m
//  koubei
//
//  Created by 李彦宏 on 2018/4/20.
//  Copyright © 2018年 朱圳. All rights reserved.
//

#import "JWGRStudHead.h"
#define SFont 15  //字体大小


@implementation JWGRStudHead

//自定义head初始化方法
- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUI];
    }
    return self;
}
//添加子控件
-(void)setUI{
    UILabel *lb1=[[UILabel alloc]initWithFrame:CGRectMake(15, 5, 50, 30)];
    lb1.text=@"姓名";
    lb1.font=[UIFont systemFontOfSize:SFont];
    lb1.textAlignment=NSTextAlignmentCenter;
    [self.contentView addSubview:lb1];
    
    
    UILabel *lb2=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth/2-25, 5, 50, 30)];
    lb2.text=@"电话";
    lb2.font=[UIFont systemFontOfSize:SFont];
    lb2.textAlignment=NSTextAlignmentCenter;
    [self.contentView addSubview:lb2];
    
    
    UILabel *lb3=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth-65, 5, 50, 30)];
    lb3.text=@"届数";
    lb3.font=[UIFont systemFontOfSize:SFont];
    lb3.textAlignment=NSTextAlignmentCenter;
    [self.contentView addSubview:lb3];
}


@end
